package com.appwoo.txtws.adapter;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.appwoo.txtws.bean.Record_SoftBean;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SoftUrlApapter extends ArrayAdapter<Record_SoftBean>
{
  private Map<Integer, View> viewMap = new HashMap();

  public SoftUrlApapter(Activity paramActivity, List<Record_SoftBean> paramList)
  {
    super(paramActivity, 0, paramList);
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    View localView = (View)this.viewMap.get(Integer.valueOf(paramInt));
    Record_SoftBean localRecord_SoftBean;
    TextView localTextView;
    if (localView == null)
    {
      localView = ((Activity)getContext()).getLayoutInflater().inflate(2130903129, null);
      localRecord_SoftBean = (Record_SoftBean)getItem(paramInt);
      localTextView = (TextView)localView.findViewById(2131493180);
      if ((localRecord_SoftBean.getGameName() == null) || (localRecord_SoftBean.getGameName().equals("")))
        break label142;
    }
    label142: for (String str = localRecord_SoftBean.getGameName(); ; str = getContext().getString(2131427572))
    {
      localTextView.setText(str);
      ((TextView)localView.findViewById(2131493181)).setText(localRecord_SoftBean.getVisitedTime().split(" ")[1]);
      this.viewMap.put(Integer.valueOf(paramInt), localView);
      return localView;
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.adapter.SoftUrlApapter
 * JD-Core Version:    0.6.2
 */